#include <iostream>
#include <vector>
using namespace std;

int main(int argc, char const *argv[]) {
  /* code */
  vector<int> grade(10, 0);
  int number;
  while (cin >> number) {
    if (number > 100) {
      cout << "The inupt number is wrong" << endl;
      break;
    }                        //超过100报错
    auto it = grade.begin(); //迭代器指向第一个元素
    int n = number / 10;     //判断分数所属的等级
    it = it + n;             //找到所属变量
    ++(*it);                 //执行加1操作
  }
  for (int i = 0; i < 10; i++) {
    cout << i * 10 << "~" << i * 10 + 10 << "  ";
    cout << grade[i] << endl;
  } //输出分数的等级及相应个数
  return 0;
}
